package com.neusoft.hifly.push.email.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Title: 核心类库
 * <p>
 * Description: Email配置
 * <p>
 * Copyright: 2019
 * <p>
 * Company: 东软汉枫
 *
 * @author lh_neu
 * @version 1.0.0
 */
@Component
public class EmailConfig {
	// 是否使用邮件
	@Value("${email.use:false}")
	private boolean use;

	// Smtp
	@Value("${email.smtp:null}")
	private String smtp;

	// Pop3
	@Value("${email.pop3:null}")
	private String pop3;

	// 端口
	@Value("${email.port:22}")
	private int port;

	// 帐号
	@Value("${email.sender:null}")
	private String sender;

	// 密码
	@Value("${email.pwd:null}")
	private String pwd;

	// 是否认证方式
	@Value("${email.auth:false}")
	private boolean auth;

	// 是否调试方式
	@Value("${email.debug:false}")
	private boolean debug;

	public boolean isUse() {
		return use;
	}

	public void setUse(final boolean use) {
		this.use = use;
	}

	public String getSmtp() {
		return smtp;
	}

	public void setSmtp(final String smtp) {
		this.smtp = smtp;
	}

	public String getPop3() {
		return pop3;
	}

	public void setPop3(final String pop3) {
		this.pop3 = pop3;
	}

	public int getPort() {
		return port;
	}

	public void setPort(final int port) {
		this.port = port;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(final String sender) {
		this.sender = sender;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(final String pwd) {
		this.pwd = pwd;
	}

	public boolean isAuth() {
		return auth;
	}

	public void setAuth(final boolean auth) {
		this.auth = auth;
	}

	public boolean isDebug() {
		return debug;
	}

	public void setDebug(final boolean debug) {
		this.debug = debug;
	}

}
